import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/goods_child_info_entity.dart';

GoodsChildInfoEntity $GoodsChildInfoEntityFromJson(Map<String, dynamic> json) {
  final GoodsChildInfoEntity loginBeanEntity = GoodsChildInfoEntity();

  final String? goodsPurchaseCode = jsonConvert.convert<String>(json['goodsPurchaseCode']);
  if (goodsPurchaseCode != null) {
    loginBeanEntity.goodsPurchaseCode = goodsPurchaseCode;
  }
  final double? weight = jsonConvert.convert<double>(json['weight']);
  if (weight != null) {
    loginBeanEntity.weight = weight;
  }
  final double? serviceCost = jsonConvert.convert<double>(json['serviceCost']);
  if (serviceCost != null) {
    loginBeanEntity.serviceCost = serviceCost;
  }
  return loginBeanEntity;
}

Map<String, dynamic> $GoodsChildInfoEntityToJson(GoodsChildInfoEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['serviceCost'] = entity.serviceCost;
  data['weight'] = entity.weight;
  data['goodsPurchaseCode'] = entity.goodsPurchaseCode;
  return data;
}
